package com.evony.common.beans 
{
    import flash.events.*;
    import mx.events.*;
    
    public class CommissionQuestBean extends Object
    {
        public function CommissionQuestBean(arg1:Object=null)
        {
            super();
            var loc1:*=0;
            _bindingEventDispatcher = new flash.events.EventDispatcher(flash.events.IEventDispatcher(this));
            if (arg1 != null) 
            {
                if (arg1.endtime != null) 
                {
                    this.endtime = arg1.endtime;
                }
                if (arg1.id != null) 
                {
                    this.id = arg1.id;
                }
                if (arg1.isAccepted != null) 
                {
                    this.isAccepted = arg1.isAccepted;
                }
                if (arg1.isFinish != null) 
                {
                    this.isFinish = arg1.isFinish;
                }
                if (arg1.isMyIssue != null) 
                {
                    this.isMyIssue = arg1.isMyIssue;
                }
                if (arg1.name != null) 
                {
                    this.name = arg1.name;
                }
                if (arg1.playerCount != null) 
                {
                    this.playerCount = arg1.playerCount;
                }
                if (arg1.position != null) 
                {
                    this.position = arg1.position;
                }
                if (arg1.reward != null) 
                {
                    this.reward = arg1.reward;
                }
                if (arg1.target != null) 
                {
                    this.target = arg1.target;
                }
                if (arg1.timeout != null) 
                {
                    this.timeout = arg1.timeout;
                }
                if (arg1.type != null) 
                {
                    this.type = arg1.type;
                }
            }
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.endtime = this.endtime;
            loc1.id = this.id;
            loc1.isAccepted = this.isAccepted;
            loc1.isFinish = this.isFinish;
            loc1.isMyIssue = this.isMyIssue;
            loc1.name = this.name;
            loc1.playerCount = this.playerCount;
            loc1.position = this.position;
            loc1.reward = this.reward;
            loc1.target = this.target;
            loc1.timeout = this.timeout;
            loc1.type = this.type;
            return loc1;
        }

        public function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="";
            loc2 = loc2 + (arg1 + "endtime = " + this.endtime + "\n");
            loc2 = loc2 + (arg1 + "id = " + this.id + "\n");
            loc2 = loc2 + (arg1 + "isAccepted = " + this.isAccepted + "\n");
            loc2 = loc2 + (arg1 + "isFinish = " + this.isFinish + "\n");
            loc2 = loc2 + (arg1 + "isMyIssue = " + this.isMyIssue + "\n");
            loc2 = loc2 + (arg1 + "name = " + this.name + "\n");
            loc2 = loc2 + (arg1 + "playerCount = " + this.playerCount + "\n");
            loc2 = loc2 + (arg1 + "position = " + this.position + "\n");
            loc2 = loc2 + (arg1 + "reward = " + this.reward + "\n");
            loc2 = loc2 + (arg1 + "target = " + this.target + "\n");
            loc2 = loc2 + (arg1 + "timeout = " + this.timeout + "\n");
            loc2 = loc2 + (arg1 + "type = " + this.type + "\n");
            return loc2;
        }

        public function copyTo(arg1:com.evony.common.beans.CommissionQuestBean):void
        {
            arg1.endtime = this.endtime;
            arg1.id = this.id;
            arg1.isAccepted = this.isAccepted;
            arg1.isFinish = this.isFinish;
            arg1.isMyIssue = this.isMyIssue;
            arg1.name = this.name;
            arg1.playerCount = this.playerCount;
            arg1.position = this.position;
            arg1.reward = this.reward;
            arg1.target = this.target;
            arg1.timeout = this.timeout;
            arg1.type = this.type;
            return;
        }

        [Bindable]
        public var isFinish:Boolean;

        [Bindable]
        public var isMyIssue:Boolean;

        [Bindable]
        public var name:String;

        [Bindable]
        public var type:int;

        [Bindable]
        public var timeout:Number;

        [Bindable]
        public var position:String;

        [Bindable]
        public var id:int;

        [Bindable]
        public var isAccepted:Boolean;

        [Bindable]
        public var reward:int;

        [Bindable]
        public var endtime:String;

        [Bindable]
        public var playerCount:int;

        [Bindable]
        public var target:String;
    }
}
